/*  1:   */ package org.jetbrains.jps.model.artifact.impl.elements;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.util.Comparing;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.artifact.elements.JpsFileCopyPackagingElement;

/*  4:   */
/*  5:   */
/*  6:   */ 
/*  7:   */ public class JpsFileCopyPackagingElementImpl
/*  8:   */   extends JpsFileCopyPackagingElementBase<JpsFileCopyPackagingElementImpl>
/*  9:   */   implements JpsFileCopyPackagingElement
/* 10:   */ {
/* 11:   */   private String a;
/* 12:   */   
/* 13:   */   public JpsFileCopyPackagingElementImpl(String paramString1, String paramString2)
/* 14:   */   {
/* 15:29 */     super(paramString1);
/* 16:30 */     this.a = paramString2;
/* 17:   */   }
/* 18:   */   
/* 19:   */   @NotNull
/* 20:   */   public JpsFileCopyPackagingElementImpl createCopy()
/* 21:   */   {
/* 22:36 */     void tmp15_12 = new JpsFileCopyPackagingElementImpl(this.myFilePath, this.a);
/* 23:36 */     if (tmp15_12 == null) {
/* 24:36 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/artifact/impl/elements/JpsFileCopyPackagingElementImpl", "createCopy" }));
/* 25:   */     }
/* 26:36 */     return tmp15_12;
/* 27:   */   }
/* 28:   */   
/* 29:   */   public void applyChanges(@NotNull JpsFileCopyPackagingElementImpl paramJpsFileCopyPackagingElementImpl)
/* 30:   */   {
/* 31:41 */     if (paramJpsFileCopyPackagingElementImpl == null) {
/* 32:41 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/artifact/impl/elements/JpsFileCopyPackagingElementImpl", "applyChanges" }));
/* 33:   */     }
/* 34:41 */     super.applyChanges(paramJpsFileCopyPackagingElementImpl);
/* 35:42 */     setRenamedOutputFileName(paramJpsFileCopyPackagingElementImpl.a);
/* 36:   */   }
/* 37:   */   
/* 38:   */   public String getRenamedOutputFileName()
/* 39:   */   {
/* 40:47 */     return this.a;
/* 41:   */   }
/* 42:   */   
/* 43:   */   public void setRenamedOutputFileName(String paramString)
/* 44:   */   {
/* 45:52 */     if (!Comparing.equal(this.a, paramString))
/* 46:   */     {
/* 47:53 */       this.a = paramString;
/* 48:54 */       fireElementChanged();
/* 49:   */     }
/* 50:   */   }
/* 51:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.artifact.impl.elements.JpsFileCopyPackagingElementImpl

 * JD-Core Version:    0.7.0.1

 */